package com.charger.trade.controller;


import com.charger.common.core.controller.BaseController;
import com.charger.common.core.page.TableDataInfo;
import com.charger.trade.domain.Records;
import com.charger.trade.service.IRecordsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 交易管理Controller
 * 
 * @author ruoyi
 * @date 2024-11-22
 */
@RestController
@RequestMapping("/charger/trade")
public class RecordsController extends BaseController
{
    @Autowired
    private IRecordsService chargingrecordsService;


    /**
     * 查询交易管理列表
     */
    @PreAuthorize("@ss.hasPermi('charger:trade:list')")
    @GetMapping("/list")
    public TableDataInfo list(Records records) {
        startPage();
        List<Records> list = chargingrecordsService.selectChargingrecordsList(records);
        return getDataTable(list);
    }


}
